#! /usr/bin/env python
# encoding: utf-8

def build(bld):
    obj = bld.new_task_gen('cxx', 'cshlib', 'pyembed')
    obj.source ='''
        ProbeLT.cpp
    '''

    obj.target = 'ProbeLT_inst'
    obj.uselib = 'SYSTEMC_H TLM BOOST'
    obj.uselib_local = 'systemc'

    obj = bld.new_task_gen('pypp')
    obj.source ='''
        ProbeLT.hpp
    '''
    obj.target='ProbeLT32';
    obj.uselib = 'BOOST BOOST_PYTHON TLM SYSTEMC_H'
    obj.uselib_local = 'systemc utils ProbeLT_inst'
    obj.include = 'scwrapper tlmwrapper'
    obj.start_decls = 'ProbeLT'
    obj.custom_code = """
cls = mb.global_ns.classes(lambda decl : decl.name.startswith('ProbeLT') )
cls.include()
for i in cls:
    i.alias = 'ProbeLT32'
"""

